home *** CD-ROM | disk | FTP | other *** search
- this._x += _parent.speed + moveX;
- this._y -= moveY;
- moveY -= floatFactor;
- rikDX = _parent.rik._x - this._x;
- rikDY = _parent.rik._y - this._y;
- if(rikDX < 10 and rikDX > -60 and rikDY < 15 and rikDY > -65)
- {
- _parent.riciclesCollected = _parent.riciclesCollected + 1;
- nextFrame();
- }
- else if(this._y > 425 or this._x < -25 or this._x > 575)
- {
- gotoAndStop(1);
- }
- else
- {
- prevFrame();
- }
-